package com.leeyu.util;

import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public class GlobalCache {

    private static Map<String, Object> globalCache = new ConcurrentHashMap<>();

    public static void set(String key, Object value) {
        globalCache.put(key, value);
    }

    public static Object get(String key) {
        return globalCache.get(key);
    }

    public static void remove(String key) {
        globalCache.remove(key);
    }
}
